{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{% static 'bootstrap-3.3.7-dist/css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'css/xx.css' %}">
</head>
<body>
<div class="container">
    <div class="kk">
        <h1 align='center'>用户信息管理系统</h1>
    </div>
    <form action="" method="post">
        {% csrf_token %}
        <div class="form-group col-xs-8 col-xs-offset-2">
            <label for="username">用户名:</label>
            <input type="text" class="form-control" id="username" placeholder="用户名" name="username" required>
        </div>
        <div class="form-group col-xs-8 col-xs-offset-2">
            <label for="phone_number">手机号:</label>
            <input type="text" class="form-control" id="phone_number" placeholder="手机号" name="phone_number" required>
        </div>
        <div class="form-group col-xs-8 col-xs-offset-2">
            <label for="sex">性别:</label>
            <input type="radio" name="sex" value="0" checked>女
            <input type="radio" name="sex" value="1">男
        </div>
        <div class="form-group col-xs-8 col-xs-offset-2">
            <label for="roles" class="col-sm-2 control-label">角色:</label>

            <select name="roles" id="roles" class="form-control" multiple>
                {% for role in role_list %}
                    <option value="{{ role.id }}">{{ role.role_name }}</option>
                {% endfor %}
            </select>

        </div>
        <div class="form-group col-xs-8 col-xs-offset-2">
            <div class="col-sm-offset-2 col-sm-10">
                <a class="pull-left btn btn-danger" href="/usertt/">信息查看</a>
                <button type="submit" class="btn btn-success pull-right">添加信息</button>
            </div>
        </div>


    </form>
</div>

</body>
</html>